package com.kate.mall.bff.wx.feign;

import com.kate.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/11/1 16:19
 */
@FeignClient("oauth-center")
public interface AuthCenterFeignClient {
    @PostMapping("/oauth/token")
    R postAccessToken(@RequestParam Map<String,String> param);

    @DeleteMapping("/oauth/logout")
    R logout();
}
